package com.tiny.jpa.pojo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


/**
 * 用户基本信息表
 * @author honglin.li
 * @date 2021/12/27
 */
@Data
@Entity
@Table(name = "demo_user")
@ApiModel("用户信息表")
public class UserBaseInfoEntity implements Serializable {

    @Id
    @ApiModelProperty("用户主键")
    private String pkid;

    @ApiModelProperty("用户编号")
    private String userId;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("用户年龄")
    private int age;

    @ApiModelProperty("创建时间")
    private Date creationTime;

    @ApiModelProperty("有效状态")
    private boolean effectState;

    @Embedded
    @ApiModelProperty("详细信息")
    private UserDetailInfoEntity detailInfo;

}
